package com.winit.config.manager;

import com.winit.config.model.Config;
import com.winit.config.repository.ConfigRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class LocalConfigManager {

    private static Logger logger = LoggerFactory.getLogger(LocalConfigManager.class);

    @Autowired
    private ConfigRepository configRepository;

    public Config getConfigById(String configId){
        return this.configRepository.findOne(configId);
    }
}
